<?php
use common\service\StaticService;
use shopend\assets\ShopAsset;
use common\service\GlobalUrlService;
$this->title = '入驻进度';



$status = [
    0 => '待审核',
    1 => '审核成功',
    2 => '驳回',
    3 => '停用',
];

?>
<!DOCTYPE html>
<html>
<head>
    <title>入驻进度</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="<?=GlobalUrlService::buildShopStaticUrl('/css/layui.css')?>">
    <link rel="stylesheet" type="text/css" href="<?=GlobalUrlService::buildShopStaticUrl('/css/public.css')?>">
    <link rel="stylesheet" type="text/css" href="<?=GlobalUrlService::buildShopStaticUrl('/css/shop/update-shop.css')?>">
    <script type="text/javascript" src="<?=GlobalUrlService::buildShopStaticUrl('/js/layui.js')?>"></script>
    <script type="text/javascript" src="<?=GlobalUrlService::buildShopStaticUrl('/backend/qiniu.min.js')?>"></script>
    <script type="text/javascript" src="<?=GlobalUrlService::buildShopStaticUrl('/backend/common.js')?>"></script>
    <script type="text/javascript" src="<?=GlobalUrlService::buildShopStaticUrl('/backend/shop/update-shop.js')?>"></script>
</head>
<body style="background: #f2f2f2;">
    <form class="layui-form">
        <div class="">
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <h2>审核状态</h2>
                    <!-- <div class="layui-inline"></div> -->
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">状态</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input1" name="shop_name" value="<?php echo isset($status[$data['status']])?$status[$data['status']]:''; ?>" disabled>
                    </div>
                </div>
                <?php if($data['status'] == 2 || $data['status'] == 0):?>
                    <div class="layui-form-item">
                        <label class="layui-form-label title">驳回原因</label>
                        <div class="layui-inline item">
                            <input type="text" class="layui-input input1" name="shop_name" value="<?=$data['dismissal']?>" disabled>
                        </div>
                    </div>
                <?php endif;?>
                
                <div class="layui-form-item">
                    <h2>店铺基本信息</h2>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">店铺名称</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input1" name="shop_name" value="<?=$data['shop_name']?>" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">登录账号</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input2" name="user_account" value="<?= $data['user_account']?>">
                    </div>
                </div>
                <?php if($data['status'] == 2 || $data['status'] == 0):?>
                    <div class="layui-form-item">
                        <label class="layui-form-label title">登录密码</label>
                        <div class="layui-inline item">
                            <input type="password" class="layui-input input3 password" name="password" />
                        </div>
                    </div>
                <?php endif;?>
                
                <div class="layui-form-item">
                    <h2>店铺管理人基本信息</h2>
                    <!-- <div class="layui-inline"></div> -->
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">店铺管理人姓名</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input4" name="administration" value="<?= $data['administration']?>">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">店铺管理人邮箱</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input5" name="admin_email" value="<?= $data['admin_email']?>">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">店铺管理人手机号</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input shop-phone input6" name="admin_phone" value="<?= $data['admin_phone']?>">
                    </div>
                </div>
                
                <?php if($data['status'] == 2 || $data['status'] == 0):?>
                    <div class="layui-form-item code_item">
                        <label class="layui-form-label title">验证码</label>
                        <div class="layui-inline item">
                            <input type="text" class="layui-input input7 code" name="code">
                            <input class="layui-btn layui-btn-normal getchecknum" value="获取验证码" type="button">
                        </div>
                    </div>
                <?php endif;?>
                
                <div class="layui-form-item">
                    <label class="layui-form-label title">店铺管理人身份证号</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input8" name="join_card_no" value="<?= $data['join_card_no']?>">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">商家客服电话</label>
                    <div class="layui-inline item">
                        <input type="text" class="layui-input input9" name="customer_phone" value="<?= $data['customer_phone']?>">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">管理人身份证正面照片</label>
                    <div class="layui-inline item">
                        <?php if($data['status'] == 2 || $data['status'] == 0):?>
                            <label class="layui-btn" for="pic-card1"><i class="layui-icon">&#xe67c;</i>选择图片</label>
                            <input type="file" id="pic-card1" class="pic-card1" style="display:none;">
                        <?php endif;?>
                        <div class="p40">
                            <label for="pic-card1 show_card">
                                <img src="<?= GlobalUrlService::buildCdnUrl($data['join_card1_pic'])?>" alt="" class="pic pic1">
                            </label>
                            <?php if($data['status'] == 2 || $data['status'] == 0):?>
                                <span class="example">
                                    <img src="<?= GlobalUrlService::buildShopStaticUrl('img/front.png')?>" alt="" >
                                    <b>示例</b>
                                </span>
                            <?php endif;?>
                            <input type="hidden" value="<?= $data['join_card1_pic']?>" class="hidden-pic1" name="join_card1_pic">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">管理人身份证反面照片</label>
                    <div class="layui-inline item">
                        <?php if($data['status'] == 2 || $data['status'] == 0):?>
                            <label class="layui-btn" for="pic-card2"><i class="layui-icon">&#xe67c;</i>选择图片</label>
                            <input type="file" id="pic-card2" class="pic-card2" style="display:none;">
                        <?php endif;?>
                        <div class="p40">
                            <label for="pic-card2 show_card">
                                <img src="<?= GlobalUrlService::buildCdnUrl($data['join_card2_pic'])?>" alt="" class="pic pic2">
                            </label>
                            <?php if($data['status'] == 2 || $data['status'] == 0):?>
                                <span class="example">
                                    <img src="<?= GlobalUrlService::buildShopStaticUrl('img/reverse.jpg')?>" alt="">
                                    <b>示例</b>
                                </span>
                            <?php endif;?>
                            <input type="hidden" value="<?= $data['join_card2_pic']?>" class="hidden-pic2" name="join_card2_pic">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label title">管理人手持身份证照片</label>
                    <div class="layui-inline item">
                        <?php if($data['status'] == 2 || $data['status'] == 0):?>
                            <label class="layui-btn" for="pic-card3"><i class="layui-icon">&#xe67c;</i>选择图片</label>
                            <input type="file" id="pic-card3" class="pic-card3" style="display:none;">
                        <?php endif;?>
                        <div class="p40">
                            <label for="pic-card3 show_card">
                                <img src="<?= GlobalUrlService::buildCdnUrl($data['join_card3_pic'])?>" alt="" class="pic pic3">
                            </label>
                            <?php if($data['status'] == 2 || $data['status'] == 0):?>
                                <span class="example">
                                    <img src="<?= GlobalUrlService::buildShopStaticUrl('img/handheld.jpg')?>" alt="" >
                                    <b>示例</b>
                                </span>
                            <?php endif;?>
                            <input type="hidden" value="<?= $data['join_card3_pic']?>" class="hidden-pic3" name="join_card3_pic">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item btns">
                    <?php if($data['status'] == 2 || $data['status'] == 0):?>
                        <a class="layui-btn add-shop save-update">提交申请</a>
                    <?php endif;?>
                    <a class="layui-btn layui-btn-primary" onclick="window.history.go(-1);">返回</a>
                    <input type="hidden" name="id" value="<?= $data['id']?>" />
                </div>
            </div>
        </div>
    </form>
    <div class="layui-footer footer" style="text-align: center; padding-bottom: 30px; ">
        <p><span style="display: inline-block; line-height: 30px; margin-right: 20px; color: #666;">Copyright © 2018 pintuane.com  备案/许可证编号为：渝ICP备18004719号</span><a class="layui-btn layui-btn-danger layui-btn-sm">重庆西西里网络科技有限公司</a></p>
    </div>
</body>
</html>




